class BanksListModel {
  int status;
  List<Data> data;
  String msg;
  String error;

  BanksListModel({this.status, this.data, this.msg, this.error});

  BanksListModel.fromJson(Map<String, dynamic> json) {
    status = json['status'];
    if (json['data'] != null) {
      data = new List<Data>();
      json['data'].forEach((v) {
        data.add(new Data.fromJson(v));
      });
    }
    msg = json['msg'];
    error = json['error'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['status'] = this.status;
    if (this.data != null) {
      data['data'] = this.data.map((v) => v.toJson()).toList();
    }
    data['msg'] = this.msg;
    data['error'] = this.error;
    return data;
  }
}

class Data {
  int iD;
  String createdAt;
  String updatedAt;
  Null deletedAt;
  String bankName;
  String firstLetter;
  String bankCode;

  Data(
      {this.iD,
      this.createdAt,
      this.updatedAt,
      this.deletedAt,
      this.bankName,
      this.firstLetter,
      this.bankCode});

  Data.fromJson(Map<String, dynamic> json) {
    iD = json['ID'];
    createdAt = json['CreatedAt'];
    updatedAt = json['UpdatedAt'];
    deletedAt = json['DeletedAt'];
    bankName = json['BankName'];
    firstLetter = json['FirstLetter'];
    bankCode = json['BankCode'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['ID'] = this.iD;
    data['CreatedAt'] = this.createdAt;
    data['UpdatedAt'] = this.updatedAt;
    data['DeletedAt'] = this.deletedAt;
    data['BankName'] = this.bankName;
    data['FirstLetter'] = this.firstLetter;
    data['BankCode'] = this.bankCode;
    return data;
  }
}
